import request from '@/utils/request.js';

export function selectClassList(query){
    return request({
        url:'/class/selectClassList',
        method:'get',
        params:query
    })
}
export function deleteClass(classId){
    return request({
        url:'/class/delete/'+classId,
        method:'delete'
    })
}

/**
 * 
 * 更新信息
 */
 export function updateClass(data){
    return request({
        url:'/class/updateClass',
        method:'post',
        data:data
    })
}
export function addClass(data){
    return request({
        url:'/class/addClass',
        method:'post',
        data:data,
    })
}
export function checkClassName(className,facultyId){
    return request({
        url:'/class/checkClassName',
        method:'get',
        params:{
            'className':className,
            'facultyId':facultyId,
            }
    })
}